package apps.json;

import org.junit.Test;

public class JsonTest {

    SimpleJsonConverter jsonConverter = new SimpleJsonConverter();

    @Test
    public void jsonToJavaTest() throws JsonException {
        String json = "{\"name\":\"rahul\",\"dob\":\"23-12-2010\"}";
        Student obj = jsonConverter.jsonToJava(json, Student.class);
        System.out.println("student obj :" + obj.toString());
    }
}
